
import axios from '@/libs/request/axios'


export const getList = (params) => {
    return axios.request({
        url: '/apply/commission/getDiscountList',
        method: 'post',
        data:params
    });
}
export const getDiscountInfo = (params) => {
    return axios.request({
        url: '/apply/commission/getDiscountInfo',
        method: 'post',
        data:params
    });
}
export const getDiscountList = (params) => {
    return axios.request({
        url: '/apply/commission/getDiscountMainList',
        method: 'post',
        data:params
    });
}

/**
 * 上传文件
 * @param params
 */
export const uploadFile = (params) => {
    return axios.request({
        url: "apply/commission/uploadFile",
        method: "POST",
        data: params,
    })
}
